/**
 * Copyright (C) 2011 ChangSha XNS Science & Technology CO,.LTD. All rights reserved.
 * XNS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/**
 * Copyright (C) 2002-2011 WUZEWEN. All rights reserved.
 * WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * This software is the confidential and proprietary information of
 * WuZeven, Personal. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with WuZeven.
 */

package com.kingcore.pda.database.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>java类文件的说明...</p>
 * @author Zeven/wzw on Nov 28, 2011
 * @version	1.0
 * @see		Object#equals(java.lang.Object)
 * @since	JDK5
 */

public class DatabaseTableBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	private String label ;
	private String comment;
	private String type;
	private List<DatabaseColumnBean> columns = new ArrayList<DatabaseColumnBean>();
	private List<DatabaseColumnBean> primaryKey = new ArrayList<DatabaseColumnBean>();
	private List<DatabaseColumnBean> insertColumns = new ArrayList<DatabaseColumnBean>();
	private List<DatabaseColumnBean> updateColumns = new ArrayList<DatabaseColumnBean>();
	
	
	
	public List<DatabaseColumnBean> getInsertColumns() {
		return insertColumns;
	}

	public void setInsertColumns(List<DatabaseColumnBean> insertColumns) {
		this.insertColumns = insertColumns;
	}

	public List<DatabaseColumnBean> getUpdateColumns() {
		return updateColumns;
	}

	public void setUpdateColumns(List<DatabaseColumnBean> updateColumns) {
		this.updateColumns = updateColumns;
	}

	public List<DatabaseColumnBean> getPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(List<DatabaseColumnBean> primaryKey) {
		for (DatabaseColumnBean bean : primaryKey) {
			bean.setIsPrimaryKey(1);
		}
		this.primaryKey = primaryKey;
	}

	/**
	 * <p>java方法的说明...</p>
	 * @author Zeven on Nov 28, 2011
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<DatabaseColumnBean> getColumns() {
		return columns;
	}

	public void setColumns(List<DatabaseColumnBean> columns) {
		this.columns = columns;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
